 <script>
function loadRoom()
{
	//alert('aaaaaaaaaaaaaaaaaaaaaaaaa');
var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("dsphong").innerHTML=xmlhttp.responseText;
    }
  }
  var tang=document.getElementById('select').value;
  //var daynha=document.getElementById('sldaynha').value;
//  alert(tang);
xmlhttp.open("GET","get_all_room_by_floor.php?tang="+tang,true);
xmlhttp.send();
}
</script>
    <?php 
	include('../template/header.php');
	include('../template/menuleft.php');
	include('../template/menuright.php');
	
	
	?>
    <script>
    function showId(){
		
			
	}
    </script>
       
        <div class="viewct" >
        <center><h3> Thông Tin Phòng</h3></center><br /><br />       
          <div class="luachon">
          <select name="daynha" onChange="" id="sldaynha">
            <option value="">-----Chọn dãy nhà----</option>
            <option value="Nam"> Dãy Nhà Nam</option>
            <option value="Nữ"> Dãy Nhà Nữ</option>
            </select>
          	<select name="tang" id="select" onChange="loadRoom()">
            <option value="">-----Chọn Tầng----</option>
            <?php 
			for($i=1; $i<10;$i++){
			?>
             <option value="<?php echo $i;?>"> Tầng <?php echo $i;?></option>
            <?php }?>
            </select>
           	<div id="dsphong">
           	<!-- cho nay  nay la cai bang-->
            </div>
            
          </div>
          <br /><br />
          <b> Ghi chú:<i style="font-size:14px; color:#F00;"> Các phòng tầng 2 thuộc loại phòng víp</i></b><br />
        </div>
        
        <?php 
		include('../template/footer.php');
		?>
    